import { AddFormatFunc, annotationRuleType } from "../../types";

AddFormatFunc<annotationRuleType>({

	type: "ANNOTATION",

	handle: (rule, FMC) => {
		return rule[1].length === 0 ? "" : rule[1].map(info => `@${FMC(info[0])}${info[1][0] === "EMPTY" ? "" : `(${info[1][0].map(item => FMC(item)).join(",")})`}\n`).join("");
	},

})
